import request from '@/utils/request';


/**
 * 初始化极验证
 * @returns {Promise<void>}
 */
export async function registerGeetest() {
    const res = await request.get('/site/geetest/register');
    if (res.data.code === 200) {
        return res.data;
    }
    return Promise.reject(new Error(res.data.msg));
}
